﻿using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using FotoLab.DomainLayer.Model;
using FotoLab.DomainLayer.Helper;

namespace FotoLab.Tests.DomainLayer.Model
{
    [TestClass]
    public class TestAbstractWithIdentity
    {

        private class DummyModel : WithIdentity
        { }

        [TestMethod]
        public void BestaandeIdWordtTerugggeven()
        {
            var id = Guid.NewGuid();
            var dummy = new DummyModel()
            {
                Id = id
            };

            Assert.AreEqual(id, dummy.Id);
        }

        [TestMethod]
        public void IdWordtGegenereerd()
        {
            var dummy = new DummyModel();
            Assert.IsNotNull(dummy.Id);
        }

    }
}
